import Vue from 'vue'
import VueRouter from 'vue-router';

import Test from '../components/test.vue'
import ShopList from '../components/shopList.vue'
import Parent from '../components/parent/index.vue'
import Shop from '../components/shop/index.vue'
import HelloWorld from '../components/HelloWorld'
import Table from '../components/table.vue'
// import { component } from '_vue@2.6.14@vue/types/umd';
import Crud from '../components/crud.vue'
import FormDemo from '../components/formDemo.vue'
import LianXi from '../components/lianxi.vue'
import Main from '../components/main.vue'


Vue.use(VueRouter)

const router = new VueRouter({
    routes: [
        {
            path: '/test',
            component: Test
        },
        {
            path: '/shopList',
            component: ShopList
        },
        {
            path: '/parent',
            component: Parent


        },
        {
            path: '/shop',
            component: Shop


        },
        {
            path: '/HelloWorld',
            component: HelloWorld
        },
        {
            path: '/table',
            component:Table
        },
        {
         path:'/crud',
         component:Crud
        },
        {
         path:'/formDemo',
         component:FormDemo
        },
        {
         path:'/lianxi',
         component:LianXi
        },
        {
         path:'/main',
         component:Main
        },
      
    ]
})
export default router